<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>税可知</title>
</head>

<body>

</body>
<script>
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    let params = GetQueryString('pageName')
    let state = GetQueryString('state')
    let page = 'http://192.168.2.247/wap/index.html#'
    if (params) { //支付  && params == 'member'
        localStorage.setItem("ispayment", 'true')
        page = page + params
    }
    if (state) { //授权
        let code = GetQueryString('code')
        page = page + state + '?code=' + code
    }
    window.location.href = page
</script>

</html>